<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@page import="com.zzvcom.webapp.action.indexbean.LeftList, com.zzvcom.webapp.action.indexbean.Menu"%>
<div class="index-box  index-box-thin  index-box-thin-green list">
	<h3>Product List</h3>
	<% 
	 LeftList list=new LeftList();
	 for(Menu m : list.getItems())
	 {
	   if(m.getSizes().size()>0)
	   {
	%>
	     <dl>
	       <dt><a href="${pageScope.ctx}/product/c/quality-<%=m.getQuality().getQuality()%>"><%=m.getQuality().getQuality()%></a></dt>
	  <%
	     for(int i=0;i<m.getSizes().size();i++)
	     {
	       if(i%3==0)
	       {
	         if(i!=0)
	         {
               out.println("</dd>");
	         }
	         out.println("<dd>");
	       }
	       %>
	         <a href="${pageScope.ctx}/product/c/quality-<%=m.getQuality().getQuality()%>--size-<%=m.getSizes().get(i).getSize()%>"><%=m.getSizes().get(i).getSize()%></a>
	       <%
	     }       
	  %>
	   </dl>
	<%   
	   }
	 }
	%>
</div>

<div class="index-box  index-box-thin  index-box-thin-dark titlebox">
	<h3>
		Subscriptions
	</h3>
	<div class="subs">
	  <form method="post" id="subsForm" action="${pageScope.ctx}/inquiry/addSubscription">
	  Get Mail on New Carpets
	  <div class="field"><span><input type="text" name="subs.name" id="subs_name"/></span>Name:</div>	
	  <div class="field"><span><input type="text" name="subs.email" id="subs_email"/></span>Email:</div>
	  <center><input id="subsBt" type="button" value="Submit"/></center>
	  </form>
	</div>
</div>

<div class="index-box  index-box-thin  index-box-thin-green box">     
	<div class="contact">
	    <h3>Contact us</h3>
        <div class="field">Tel : 86-371-65807858</div>
        <div class="field">Fax: 86-371-65807878</div>
        <div class="field">Email: <a href="mailto:info@yilongcarpet.com">info@yilongcarpet.com</a></div>
	</div>  
</div>

